package cn.edu.usst.cs.goldfish.software_engineering.services;

import cn.edu.usst.cs.goldfish.software_engineering.entities.Stock;
import cn.edu.usst.cs.goldfish.software_engineering.repos.StockRepos;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StockService {

    @Autowired
    private StockRepos repos;

    public List<Stock> findAll(){
        return repos.findAll();
    }

    public Stock save(Stock stock){
        return repos.save(stock);
    }

}
